"auto match bracks
function! HtmlMappings()
    inoremap <buffer> ( ()<Esc>i
    inoremap <buffer> [ []<Esc>i
    inoremap <buffer> { {}<Esc>i
    inoremap <buffer> < <><Esc>i
    inoremap <buffer> " ""<Esc>i
    inoremap <buffer> ) <c-r>=ClosePair(')')<CR>
    inoremap <buffer> ] <c-r>=ClosePair(']')<CR>
    inoremap <buffer> > <c-r>=ClosePair('>')<CR>
    inoremap <buffer> } <c-r>=ClosePair('}')<CR>
    inoremap <buffer> <leader>" <c-r>=QuoteDelim('"')<CR>
    inoremap <buffer> <leader>' <c-r>=QuoteDelim("'")<CR>


    "jump out from right bracket or quote
    inoremap <buffer> <Tab> <c-r>=SkipBracket("[\\]\\)\\}>\"'`;]")<CR>

    "comment current line of vim code
    inoremap <buffer> <c-_> <c-r>=XmlCommentToggle()<CR>
    nnoremap <buffer> <c-_> i<c-r>=XmlCommentToggle()<CR><Esc>
    vnoremap <buffer> <c-_> <Esc>i<c-r>=XmlVCommentToggle()<CR><Esc>x

endfunction

"add comment line
function! HtmlCommonMap()
endfunction


"all configurations for vim script edit
function! HtmlCommonConfig()
    call HtmlCommonMap()
    call HtmlMappings()
endfunction
 
